﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for AdminManager
/// </summary>
public class AdminManager
{
    AdminDAO adminDAO;
    public AdminManager()
    {
        adminDAO = new AdminDAO();
    }

    public bool check_admin_login(Admin admin)
    {
        DataTable tb = adminDAO.check_adminDAO(admin);
        if (tb.Rows.Count > 0)
        {
            return true;
        }
        return false;
    }

    public bool changepassadmin(Admin admin)
    {
        return adminDAO.changpass(admin);
    }
}